/*
 * @Author: miaoyongbin
 * @Date: 2022-07-21 15:24:23
 * @LastEditTime: 2022-07-21 15:26:38
 * @Description: 获取Table信息
 *
 * Copyright (c) 2022 by miaoyongbin, All Rights Reserved.
 */

import request from '@/utils/request'
import { camelCaseObject } from '@/libs/object'

const AUTH_PREFIX_V1 = `/api/v1/ob`

export function getObTableList(tenantId, databaseName) {
  return request.get(`${AUTH_PREFIX_V1}/tenants/${tenantId}/databases/${databaseName}/tables`).then(res => camelCaseObject(res))
}

